<%
/**
 *  list 异常信息列表
 * 
 * @author   张彬
 * @version v1.0
 * @date     2011-10-08
 * @since   JDK1.6
 */
%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="at" uri="/WEB-INF/util_tag.tld"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title><s:text name="exception.list.title"></s:text></title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta content="no-cache" http-equiv="Pragma"/>
		<meta content="no-cache" http-equiv="Cache-Control"/>
		<meta content="0" http-equiv="Expires"/>
		<meta name="GENERATOR" content="MSHTML 8.00.6001.18854"/>
		<link rel="stylesheet" id="list" type="text/css" href="<at:url css="list.css"/>" />
		<link rel="stylesheet" type="text/css" id="banner" href="<at:url css="banner_button.css"/>" />
		<script type="text/javascript" src="${rootPath}/Common/Js/jquery.js"></script>
		<script type="text/javascript" src="${rootPath}/Common/Js/common.js"></script>	
		<script type="text/javascript" src="<at:url js="list.js"/>"></script>	
		<script type="text/javascript" src="<at:url js="banner_button.js"/>"></script>
		<script type="text/javascript">
			/**
			 * 跳转到添加页面
			 */
			function add(){
				setTimeout(function(){
				    window.location.href = "Exception!edit?flag=add&funId=${funId}";
				},0);
			}
			
			/**
			 * 跳转到编辑页面
			 */
			function edit(){
				var id = checkOneValue('checkOne');
				var url = "Exception!edit?flag=edit&funId=${funId}&object.id=";
				if(id){
					url+=id;
					setTimeout(function(){
					    window.location.href = url;
					},0);
				}
			}
			
			/**
			 * 删除操作
			 */
			function del(){
				var id = checkManyValue('checkOne');
				if(id && window.confirm('<s:text name="js.common.confirmToDel"></s:text>？')){
					var url="Exception!del?page=${page}&funId=${funId}";
					url +="&ids="+id;
					setTimeout(function(){
					    window.location.href = url;
					},0);
				}
			}
			
			/**
			 * 点击错误码跳转到编辑页面
			 */
			function enter(id){
				var url = "Exception!edit?flag=edit&funId=${funId}&object.id=" + id;
				setTimeout(function(){
				    window.location.href = url;
				},0);
			}
			
			/**
			 * 数据列表高度设置
			 * @author  牟景飞
			 * @version v1.0
			 * @date    2012-11-07
			 */
			$(document).ready(function(){
				var obj = document.getElementById("query_bar");
				var list = document.getElementById("dataList");
				var rel = obj.style.display;
				if (rel != "none") {
					list.style.height = "371px";
				} else {
					list.style.height = "396px";
				}
			});		
		</script>
	</head>
	<body style="margin-left: 23px;margin-right: 23px">
		<form action="Exception!list?flag=list&funId=${funId}" name="queryForm" method="post" >
			<input type="hidden" name="page" value="${page}" />
			<input type="hidden" name="order" value="${order}" />
			<input type="hidden" name="vQuery" value="${vQuery}" />
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
				    <td>
				    	<!-- 位置 -->
				    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
					      <tr>
					        <td height="44" valign="bottom">当前位置：<a href="#">系统配置</a>-&gt;<font color="#ff0000">异常信息</font></td>
					      </tr>
				    	</table>
				    	<!-- 主表 -->
				    	<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:7px;">				  				
				      		<tr>
				       			<td>
				       			<!-- 按钮行表单 -->
				       				<table width="100%" border="0" cellspacing="0" cellpadding="0">
				          				<tr>
											<td width="5" height="24" id="kjz03"></td>
										    	<td class="biao1_zhong">
										            <table width="100%" border="0" cellspacing="0" cellpadding="0">
										              <tr>
										                <td height="24">
											                <jsp:include page="../../ListHead.jsp" flush="true">
										                		<jsp:param name="delUrl" value="Exception!del?page=${page}&funId=${funId}&ids=" />
										                	</jsp:include> 
														</td>
										              </tr>
										            </table>
										    	</td>
										    	<td width="5" height="24" id="kjy03"></td>
				          					</tr>
				        				</table>  										
				        			</td>
				        		 </tr>  
				        		 <!-- 查询条件（默认不显示） -->
				        		 <tr>
				        			<td>
				        				<div id="query_bar" style="display:${vQuery==0?'none':''};" class="queryTab">
											<table width="100%" border="0" cellspacing="0" cellpadding="0">
												<tr>
													<td width="4" class="biao3_zuo"></td>
													<td>
														<table border="0">
															<tr>
																<td align="right"  class="font_1">
																	<nobr>错误码:</nobr>
																</td>
																<td align="left"   class="font_1">
																	<input type="text" name="object.code" value="${object.code}"/>&nbsp;&nbsp;
																</td>
																<td align="right"   class="font_1">
																	<nobr>异常类:</nobr>
																</td>
																<td align="left"   class="font_1">
																	<input type="text" name="object.exceptionClass" value="${object.exceptionClass}" /> &nbsp;&nbsp;
																</td>
																<td align="right"   class="font_1">
																	<nobr>出错原因:</nobr>
																</td>
																<td align="left"   class="font_1">
																	<input type="text" name="object.causedBy" value="${object.causedBy}"/>&nbsp;&nbsp;
																</td>
																<td align="right"   class="font_1">
																	<nobr>出错描述:</nobr>
																</td>
																<td align="left"   class="font_1">
																	<input type="text" name="object.errorDescribe" value="${object.errorDescribe}"/>&nbsp;&nbsp;
																</td>
																<td align="left">													
																	<div id="nav">
																		<ul><li class="biao5_zhong"><a  href="#" onclick="page.value=1;document.queryForm.submit();">查询</a></li></ul>															
																	</div> 																																							
																</td>
															</tr>
														</table>
													</td>												
													<td width="4" class="biao3_you"></td>
												</tr>
											</table>
										</div>
								     </td>
							 	 </tr>				        		     
				      			<!-- 标题 -->
				      			<tr>
				        			<td>
				        				<table width="100%" border="0" cellspacing="0" cellpadding="0">
				         					 <tr>
									            <td width="4" height="23" id="bz03"></td>
									            <td class="biao2_zhong" height="23">
									            <table width="100%" border="0" cellspacing="0" cellpadding="0">
									              <tr class="cur">
									                <td width="3%"  align="left"><input type='checkbox' onclick="selectReverse('checkOne')" id="ID" value=''/></td>
									                <td width="15%" align="left" style="cursor: pointer" onclick="orderby('code')">错误码</td>
									                <td width="15%" align="left" style="cursor: pointer" onclick="orderby('exceptionClass')">异常类</td>
									                <td width="25%" align="left" style="cursor: pointer" onclick="orderby('causedBy')">出错原因</td>
									                <td width="20%" align="left" style="cursor: pointer" onclick="orderby('errorDescribe')">出错描述</td>
									                <td width="22%" align="left" style="cursor: pointer" onclick="orderby('resolveWay')">解决方案</td>									                             
									              </tr>
									            </table>
									            </td>
									            <td width="4" height="23" id="by03"></td>
								         	 </tr>
								        </table>
								     </td>
							  	</tr>	
							</table>
							  <!-- 表体  -->	
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="4" class="biao3_zuo"></td>
								<td>
									<div id="dataList" style="overflow-y:auto;overflow-x:hidden; height:396px; width: 100%">
										<table width="100%" border="0" cellspacing="0" cellpadding="0">
							      		 <tr>
							        		<td height="100%">				        
										        <s:iterator value="#request['pagelist'].content" status="status">
										        	<table  width="100%" border="0" cellspacing="0" cellpadding="0">
							        					<tr id="tr${status.count}" onclick="rowclick(this)">																	
															<td>
																<table width="100%" border="0" cellspacing="0" cellpadding="0">
								             					    <tr>
																		<td width="3%" height="22" align="center"><input id="checkOne" name="checkOne" value="${id}" type='checkbox' onclick="dataPageCheckChange(this)"/></td>
																		<td width="15%" align="left" style=" padding-left:15px;"><a href="#" onclick="enter('${id}');">${code}</a></td>
																		<td width="15%" align="left">${exceptionClass}</td>
																		<td width="25%" align="left">${causedBy}</td>
																		<td width="20%" align="left">${errorDescribe}</td>
																		<td width="22%" align="left">${resolveWay}</td>
																	</tr>
													            </table>
													         </td>												        
													    </tr>
													</table>
												</s:iterator>					        			        
									        </td>
							     		 </tr>
							     		</table>
									</div>	
								</td>
								<td width="4" class="biao3_you"></td>
							</tr>
						</table>
				      		<!-- 页码 -->
				      		<table width="100%" border="0" cellspacing="0" cellpadding="0">
						      <tr>
						        <td>
						        	<table width="100%" border="0" cellspacing="0" cellpadding="0">
								          <tr valign="top">
								            <td width="4" height="23" id="bz03"></td>
								             <td class="biao4_zhong">
									            <table width="100%" border="0" cellspacing="0" cellpadding="0">
									              <tr>									                
									                <td>
										                <table align="right">
										                  <tr>										                  
										                  	<at:page />										                  									                     
										                  </tr>
										                </table>
									                </td>									                
									              </tr>
									            </table>
								            </td>
								            <td width="4" height="23" id="by03"></td>
								        </tr>
						        	</table>
						        </td>
						 	 </tr>				   	
						</table>
					</td>
				</tr>
			</table>			
		</form>
	</body>
</html>
